function test(){
                alert($);
}
$().ready(function(){ 
                   $("#formvalidate").validate({
                                      rules: {
                                                      user_name: {
                                                                      required:true,
                                                                      minlength:6
                                                      },
                                                      password1: {
                                                                      required:true,
                                                                      minlength:8
                                                      }
                                      },
                                      messages: {
                                                     user_name: {
                                                                     required: "用户名不能为空!",
                                                                     minlength: "长度不能少于6位"
                                                     },
                                                      password1: {
                                                                     required: "密码不能为空!",
                                                                     minlength: "长度不能少于8位"
                                                     }
                                      }
                     });
                     //alert($);
                          
                });
